<?php
namespace Topxia\Service\Zhibo\Impl;

use Topxia\Common\ArrayToolkit;
use Topxia\Common\SimpleValidator;
use Topxia\Service\Zhibo\ZhiboService;
use Topxia\Service\Common\BaseService;
use Topxia\Service\Common\ServiceEvent;
use Topxia\Component\OAuthClient\OAuthClientFactory;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;

class ZhiboServiceImpl extends BaseService implements ZhiboService
{
    public function setzhibo($data)
    {
        $user = $this->getZhiboDao()->setzhibo($data);
        return $user;
    }
   

    public function getZhiboDao()
    {
        return $this->createDao('Zhibo.ZhiboDao');
    }
	/*
	 * 编辑直播
	 */ 
    public function esavezhibo($id,$data)
    {
        return $this->getZhiboDao()->esavezhibo($id,$data);
    }
	/*
	 * 直播列表
	 */
	public function get_zhibo_ss($conditions, $orderBy, $start, $limit)
    {
        return $this->getZhiboDao()->get_zhibo_ss($conditions, $orderBy, $start, $limit);
    } 
	/*
    * 直播统计
    */
   public function get_zhibo_count($conditions){
   	   return $this->getZhiboDao()->get_zhibo_count($conditions);
   }
   /*
    * 获取一条记录
    */
   public function get_zhibo_s($id){
   	return $this->getZhiboDao()->get_zhibo_s($id);
   }
}
